#!/bin/bash

mkdir -p ./lib
bb=$PWD
echo $bb
cd ${bb}/pyscf_ccso
	make
cd ..

cd lib_mod
   make 
cd ..

for aa in libsrint cc_pyscf ccsd ccsdt uccsd uccsdt ccsd_ri uccsd_ri roccsdt 
do
	echo ${aa}
	cd ${aa}
	cp ${bb}/lib_mod/mod* .
	make 
	cd ${bb} 
done

  
#echo `find $bb`
#for aa in `find $bb`
#do
#        if [ -d "${aa}" ];then
#		echo "${aa}"
#		cd ${aa}
#		echo $PWD   # 需要执行的具体命令 
#		cd $bb
#        fi
#done
